<?php

App::uses('AppController', 'Controller');
App::uses('CursosDao','Model');

class DialogsController extends AppController {

	
	public function beforeFilter() {
		parent::beforeFilter();
		$this->layout = 'blank';
	}

	public function index() {}
	
	public function modificar_tipus_curs($id){
		$cursosDao = new CursosDao();
		$nom_curso = $cursosDao->getNomTipusCursPerId($id);

		$this->set('id',$id);
		$this->set('nom',$nom_curso[0]->nom);
		$this->render();
	}
	
	
}


?>
